package com.hospital.api;

import com.hospital.api.factory.RemoteFileFallbackFactory;
import com.hospital.common.core.constants.ServiceNameConstants;
import com.hospital.common.core.module.controller.vo.CancelReq;
import com.hospital.common.core.module.controller.vo.ReservationReq;
import com.hospital.common.core.result.Tip;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import javax.servlet.http.HttpServletRequest;

@FeignClient(contextId = "remoteRegistrationService",value = ServiceNameConstants.REGIST_SERVICE,fallbackFactory = RemoteFileFallbackFactory.class)
public interface RegistrationService {

    @PostMapping("/register/reservation")
    public Tip getAssessInitData(ReservationReq reservationReq, HttpServletRequest request);

    @PostMapping("/register/cancel")
    public Tip getCancelData(CancelReq cancelReq, HttpServletRequest request);
}
